<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
"classpath:org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd">

<mapper namespace="itsm.isperp.module.repository.${module}.${entityName}Mapper">

	<select id="findAllByRequest" parameterType="itsm.isperp.framework.web.request.JqGridRequest"
		resultType="itsm.isperp.module.entity.${module}.${entityName}">
		FROM ${tableName} WHERE 1=1
	</select>

	<select id="findAllDetailByRequest" parameterType="itsm.isperp.framework.web.request.JqGridRequest"
		resultType="java.util.Map">
		FROM ${tableName} WHERE 1=1
	</select>


	<select id="findOne" parameterType="string"
		resultType="itsm.isperp.module.entity.${module}.${entityName}">
		SELECT * FROM ${tableName} WHERE id=#{id}
	</select>

</mapper>